package com.xiaoshuidi.cloud.module.report.dal.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.xiaoshuidi.cloud.framework.mybatis.core.mapper.BaseMapperX;
import com.xiaoshuidi.cloud.module.report.dal.DO.ContractRoomDO;
import com.xiaoshuidi.cloud.module.report.xxljob.PO.ContractRoomPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
@InterceptorIgnore(tenantLine = "true")
public interface ContractRoomMapper extends BaseMapperX<ContractRoomDO> {

    List<ContractRoomPO> selectContractListByRoomIds(@Param("roomIds") List<Long> roomIds);

    ContractRoomPO selectOneByContractStatus(@Param("roomId") Long roomId);

    ContractRoomPO selectOneByStatusEnd(@Param("roomId") Long roomId);

}
